package mymail;

import java.util.Formatter;

public class Util {

	public static String byteArray2Hex(byte[] ba) {
		Formatter f = new Formatter();

		for (byte b : ba) {
			f.format("%02x", b);
		}
		return f.toString();
	}
}
